<?php

# A simple blog implemented with the Giocondo ToolKit.
#
# Pulls out data from a SQLite database using
# the PHP Data Objects (PDO) abstract interface.
#
# Requires enabling in php.ini:
#
# extension=pdo.so
# extension=pdo_sqlite.so

# Actions that should be repeated on every client
# request should go here.  E.g. setting up resources
# that are always used both in display and event mode.

# DEBUG
# Comment out to disable on production.
ini_set('display_errors', 'On');

# Initialize Giocondo.
# Change this to the directory where Giocondo is installed.
# Fallback to default HTML templates if not overriden by user.
# TODO: what if include_path already ends with a PATH_SEPARATOR ?
# Arch
#set_include_path(get_include_path() . PATH_SEPARATOR . '/srv/users-http/ant'
#	. PATH_SEPARATOR . '/srv/users-http/ant/Giocondo/html');
# Mac
set_include_path(get_include_path() . PATH_SEPARATOR . '/Users/ant'
	. PATH_SEPARATOR . '/Users/ant/Giocondo/html');

# This must be included in the global scope.
require 'Giocondo/php/Init.php';

# TODO: errors like these should cause Library.js to be loaded. Also the
# session should start before printing an error message.
#Error::trigger('test');

Blog::display();
# There should be no more code after display.

# End of file
# vim: set ts=2 sw=2 noet:
?>
